<?PHP

// MinBS - Minimalist Blogging System
// Developed by Juliano "tibone" Flores
// http://code.google.com/p/minbs/


require_once('required.php');
session_start();
if(!$_SESSION['minbs']=="logged"){
header("location:index.php");
}

$id = $_GET['id'];

$delete_query = "DELETE FROM minbs_categories where id = '$id'";

$deleted = mysql_query($delete_query, $connection);

header("location:admin.php");

?>